import { defineStore } from 'pinia'
export const useMessageStore = defineStore('message', () => {
  const unRead = ref(0)

  const updateCount = async () => {
    const res = await http({
      url: http.adornUrl('/platform/notifyLog/unReadCountList')
    })
    unRead.value = res.data.total
  }

  return {
    unRead,
    updateCount
  }
})
